<?php


namespace app\admin\validate;


use think\Validate;

class Department extends Validate
{
    /**
     * 验证规则
     * @var string[]
     */
    protected $rule = [
        'id' =>'require',
        'name' => 'require|max:50|min:1',
    ];
    /**
     * 场景
     * @var string[][]
     */
    protected $scene = [
        'create' => ['name'],
        'update' => ['id'],
    ];
    /**
     * @var array
     */
    protected $message = [

    ];

}